
const routes = [
    {
        path: '/',
        component: () => import("@/components/login.vue")

    },
    {
        path: "/register",
        component: () => import("@/components/register.vue")
    },
    {
        path: "/index",
        name: "index",
        component: () => import("@/components/index.vue"),
        children: [
            {
                path: "ownpage",
                name: "ownpage",
                component: () => import("@/components/index/ownpage.vue"),

            },
            {
                path: "",
                component: () => import("@/components/index/index.vue")
            },
            {
                path: "message",
                component: () => import("@/components/index/message.vue")
            },
            {
                path: "attendance",
                component: () => import("@/components/index/Attendance.vue")
            },
        ]
    },
    //课程路由
    {
        path: "/index/course",
        component: () => import("@/components/index/course/course.vue"),
    },

    {
        path: "/index/css_course",
        component: () => import("@/components/index/course/Teach/course/css_course.vue"),
    },
    {
        path: "/index/html_course",
        component: () => import("@/components/index/course/Teach/course/html_course.vue"),
    },
    {
        path: "/index/jquery_course",
        component: () => import("@/components/index/course/Teach/course/jquery_course.vue"),
    },
    {
        path: "/index/js_course",
        component: () => import("@/components/index/course/Teach/course/js_course.vue"),
    },
    {
        path: '/index/html_content',
        component: () => import("@/components/index/course/course_content/html_content.vue"),
    },

    //周报路由
    {
        path: '/weekly',
        component: () => import("@/components/index/course/weekly.vue")
    },
    {
        path: '/weekly_content',
        component: () => import("@/components/index/course/weekly_content/weekly_content")

    },
    {
        path:"/show_weekly",
        component:()=>import("@/components/index/course/weekly_content/show_weekly.vue")
    },

    // 课程创建
    {
        path: "/create",
        component: () => import("@/components/index/course/Teach/create_class.vue")
    },
    {
        path: "/study",
        component: () => import("@/components/index/course/study/index.vue"),
        children: [
            {
                path: "",
                component: () => import("@/components/index/course/study/work.vue")
            },
            {
                path: "chapter",
                component: () => import("@/components/index/course/study/chapter.vue")
            },
            {
                path: "more",
                component: () => import("@/components/index/course/study/more.vue")
            },
        ]
    },
    // 课程介绍
    {
        path: "/class",
        component: () => import("@/components/index/course/class/index.vue")
    },
    {
        path: "/lesson",
        component: () => import("@/components/index/course/class/lesson_plan.vue")
    },
    {
        path: "/charpter",
        component: () => import("@/components/index/course/class/charpter.vue")
    },

    // 作业路由
    {
        path: "/homework",
        component: () => import("@/components/index/course/class/homework.vue"),
        children: [
            {
                path: "/",
                component: () => import("@/components/index/course/class/homework/relese_job.vue")
            },
            {
                path: "task",
                component: () => import("@/components/index/course/class/homework/tasks.vue")
            },
        ]
    },
    {
        path: "/class",
        component: () => import("@/components/index/course/class/index.vue")
    },





    // 个人信息路由
    {
        path: '/compilation',
        name: 'compilation',
        component: () => import("@/components/index/own_msg/compilation.vue"),
    },

    {
        path: "/autograph",
        component: () => import("@/components/index/own_msg/own_msg_cont/autograph.vue")
    },
    {
        path: "/gender",
        component: () => import("@/components/index/own_msg/own_msg_cont/gender.vue")
    },
    {
        path: "/management",
        component: () => import("@/components/index/own_msg/own_msg_cont/management.vue")
    },
    {
        path: '/cancelaccount',
        component: () => import("@/components/index/own_msg/own_msg_cont/cancelaccount.vue"),
    },
    {
        path: '/changepassword',
        name: "changepassword",
        component: () => import("@/components/index/own_msg/own_msg_cont/changepassword.vue"),
    },
    {
        path: '/phonenumber',
        component: () => import("@/components/index/own_msg/own_msg_cont/phonenumber.vue"),
    },
    {
        path: '/realname',
        component: () => import("@/components/index/own_msg/own_msg_cont/realname.vue"),
    },
    {
        path: "/class",
        component: () => import("@/components/index/course/class/index.vue")
    },
    {
        path: '/compilation',
        name: 'compilation',
        component: () => import("@/components/index/own_msg/compilation.vue"),
    },

    {
        path: "/autograph",
        component: () => import("@/components/index/own_msg/own_msg_cont/autograph.vue")
    },
    {
        path: "/gender",
        component: () => import("@/components/index/own_msg/own_msg_cont/gender.vue")
    },
    {
        path: "/management",
        component: () => import("@/components/index/own_msg/own_msg_cont/management.vue")
    },
    {
        path: '/cancelaccount',
        component: () => import("@/components/index/own_msg/own_msg_cont/cancelaccount.vue"),
    },
    {
        path: '/changepassword',
        name: "changepassword",
        component: () => import("@/components/index/own_msg/own_msg_cont/changepassword.vue"),
    },
    {
        path: '/phonenumber',
        component: () => import("@/components/index/own_msg/own_msg_cont/phonenumber.vue"),
    },
    {
        path: '/realname',
        component: () => import("@/components/index/own_msg/own_msg_cont/realname.vue"),
    },
    {
        path: '/unitsetting',
        component: () => import("@/components/index/own_msg/own_msg_cont/unitsetting.vue"),
    },

    // 个人简历
    {
        path: '/index/resume',
        component: () => import("@/components/index/Resume/index.vue"),
    },

    // 个人优势
    {
        path: '/index/ownadv',
        component: () => import("@/components/index/Resume/More/own_advantage.vue"),
    },
    // 求职期望
    {
        path: '/index/jobwant',
        component: () => import("@/components/index/Resume/More/job_want.vue"),
    },

    // 求职期望
    {
        path: '/index/education',
        component: () => import("@/components/index/Resume/More/education.vue"),
    },
    // 简历展示
    {
        path: '/show',
        component: () => import("@/components/index/Resume/More/show.vue"),
    },
]
exports.routes = routes